package cn.iocoder.yudao.module.erp.controller.admin.priwarehouseintegra.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - ERP 一级库整合单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PriWarehouseIntegraRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15322")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "整合单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13644")
    @ExcelProperty("整合单编号")
    private String integrateId;

    @Schema(description = "备注", example = "随便")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "审批意见")
    @ExcelProperty("审批意见")
    private String opinion;

    @Schema(description = "状态", example = "2")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("purchase_apply_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "流程实例的编号", example = "31159")
    @ExcelProperty("流程实例的编号")
    private String processInstanceId;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "工作流id", example = "31159")
    private String taskId;


}